package com.lgrglw.search.ke.action;

import com.lgrglw.common.page.Page;
import com.lgrglw.common.page.SeachParam;
import com.lgrglw.search.ke.mapping.DocSearchEntity;

public interface DocBuildSearch {
	/**
	 * 客户化知识 新增或是更新索引
	 * 
	 * @param entity
	 * @return
	 */
	public boolean writeIndex(DocSearchEntity entity);

	/**
	 * 客户化知识 搜索文档
	 * 
	 * @param param
	 * @return
	 */
	public Page<DocSearchEntity> seachIndex(SeachParam param);

	/**
	 * 客户化知识 删除文档索引
	 * 
	 * @param entity
	 * @return
	 */
	public boolean deleteIndex(DocSearchEntity entity);
}
